//
//  JHPreferencesInfoModel.m
//  JuniRengLish_iOS
//
//  Created by Maiyou on 2019/5/21.
//  Copyright © 2019 revogi. All rights reserved.
//

#import "JHPreferencesInfoModel.h"

@implementation JHPreferencesInfoModel

static JHPreferencesInfoModel * _instance = nil;
+(instancetype) shareInstance
{
    static dispatch_once_t onceToken ;
    dispatch_once(&onceToken, ^{
        _instance = [[super allocWithZone:NULL] init] ;
    }) ;
    return _instance ;
}

- (NSInteger)fontSize
{
    NSString * string = [DJTool getUserdefultforKey:@"fontSize"];
    if (string == NULL)
    {
        return 14;
    }
    else
    {
        return string.integerValue;
    }
}

- (NSInteger)fontStyle
{
    NSString * string = [DJTool getUserdefultforKey:@"fontStyle"];
    if (string == NULL)
    {
        return 10;
    }
    else
    {
        return string.integerValue;
    }
}

- (NSInteger)playMode
{
    NSString * string = [DJTool getUserdefultforKey:@"playMode"];
    if (string == NULL)
    {
        return 30;
    }
    else
    {
        return string.integerValue;
    }
}

@end
